class Player (object):
    def __init__(self, name = str, ID = int, score = int, **myhash):
        self.name = name
        self.ID = ID
        self.score = score
        self.myhash = myhash

    def printDetails(self,name,ID,score):
        print name
        print ID
        print score
        
#create an empty list
playerList = []

#populate list with 2 instances of the class 'Player'
playerList.append(Player("1", "2", "3"))
playerList.append(Player("4", "5", "6"))

#test empty myhash
#print playerList[0].myhash

#assign an entry to the dictionary of each class instance
playerList[0].myhash['player0'] = 0
playerList[1].myhash['player1'] = 1


#print dictionary of first class instance
print playerList[0].myhash

#print dictionary of second class instance
print playerList[1].myhash



if __name__ == "__main__":
    
    #for r in playerList:
    player = Player()
    player.printDetails(name,ID,score)
   
